<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGRv2: model/dgr-udp-application.cc Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DGRv2<span id="projectnumber">&#160;2-dev</span>
   </div>
   <div id="projectbrief">A Delay-Guaranteed Routing Protocol model in ns-3</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d0/ded/dgr-udp-application_8cc_source.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">dgr-udp-application.cc</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d0/ded/dgr-udp-application_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/* -*- Mode:C++; c-file-style:&quot;gnu&quot;; indent-tabs-mode:nil; -*- */</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">// #include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">// #include &quot;ns3/core-module.h&quot;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment">// #include &quot;ns3/network-module.h&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment">// #include &quot;ns3/point-to-point-module.h&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment">// #include &quot;ns3/applications-module.h&quot;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment">// #include &quot;ns3/internet-module.h&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment">// #include &quot;ns3/flow-monitor-module.h&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;<a class="code" href="../../dc/d8d/dgr-udp-application_8h.html">dgr-udp-application.h</a>&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;ns3/timestamp-tag.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;<a class="code" href="../../dc/ded/dgr-tags_8h.html">dgr-tags.h</a>&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="../../d0/ded/dgr-udp-application_8cc.html#a40760e9f2359c35da6f29e0a8fafb9ca">   15</a></span><span class="preprocessor">#define MAX_UINT_32 0xffffffff</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d7/d2e/namespacens3.html">ns3</a> {</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d7/d2e/namespacens3.html#aa6f2b59e2179ee3c3f85014c9e250460">   20</a></span><a class="code hl_function" href="../../d7/d2e/namespacens3.html#adde9ed23eff577cdfec10d85035e32eb">NS_LOG_COMPONENT_DEFINE</a> (<span class="stringliteral">&quot;DGRUdpApplication&quot;</span>);</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d7/d2e/namespacens3.html#afa090c96332a768ac95fbeb64a034620">   22</a></span><a class="code hl_function" href="../../d7/d2e/namespacens3.html#aef8bf32b4f2f98d854532bfb36d47a7c">NS_OBJECT_ENSURE_REGISTERED</a> (<a class="code hl_class" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html">DGRUdpApplication</a>);</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a789f5dd5d50db1e9d60f7f7618098f0d">   24</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a789f5dd5d50db1e9d60f7f7618098f0d">DGRUdpApplication::DGRUdpApplication</a> ()</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>  : m_socket (nullptr),</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    m_peer (),</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    m_packetSize (0),</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>    m_nPackets (0),</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    m_dataRate (0),</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>    m_sendEvent (),</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>    m_running (false),</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    m_packetSent (0),</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    m_budget (<a class="code hl_define" href="../../d0/dbf/dgr-tcp-application_8cc.html#a40760e9f2359c35da6f29e0a8fafb9ca">MAX_UINT_32</a>),</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    m_flag (false),</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>    m_vbr (false)</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>{</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>}</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ad7423806aaf0be2db0e87be4d30dae7f">   39</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ad7423806aaf0be2db0e87be4d30dae7f">DGRUdpApplication::~DGRUdpApplication</a> ()</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>{</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>}</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>TypeId</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#adf5ede44035ee65db58c501d67f01d07">   45</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#adf5ede44035ee65db58c501d67f01d07">DGRUdpApplication::GetTypeId</a> ()</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>{</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>  <span class="keyword">static</span> TypeId tid = TypeId (<span class="stringliteral">&quot;ns3::DGRUdpApplication&quot;</span>)</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    .SetParent&lt;<a class="code hl_class" href="../../de/d6b/class_application.html">Application</a>&gt; ()</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>    .SetGroupName(<span class="stringliteral">&quot;DGRv2&quot;</span>) </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    .AddConstructor&lt;<a class="code hl_class" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html">DGRUdpApplication</a>&gt; ()</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    <span class="comment">// .AddAttribute (&quot;Variable_bitrate&quot;,</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    <span class="comment">//                &quot;Enable the VBR&quot;,</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>    <span class="comment">//                BooleanValue (false),</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>    <span class="comment">//                MakeBooleanAccessor (&amp;DGRUdpApplication::m_vbr),</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    <span class="comment">//                MakeBooleanChecker ())</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>  ;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>  <span class="keywordflow">return</span> tid;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>}</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">   61</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">DGRUdpApplication::Setup</a> (Ptr&lt;Socket&gt; socket,</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>                          Address sinkAddress,</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>                          uint32_t packetSize,</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>                          uint32_t nPackets,</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>                          DataRate dataRate,</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>                          uint32_t budget,</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>                          <span class="keywordtype">bool</span> flag)</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>{</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a> = socket;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">m_peer</a> = sinkAddress;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">m_packetSize</a> = packetSize;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">m_nPackets</a> = nPackets;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">m_dataRate</a> = dataRate;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">m_budget</a> = budget;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">m_flag</a> = flag;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> }</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#adb264cf9c38a6270a7f56faf5a4ff4a3">   79</a></span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">DGRUdpApplication::Setup</a> (Ptr&lt;Socket&gt; socket,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>                           Address sinkAddress,</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>                           uint32_t packetSize,</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>                           uint32_t nPackets,</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>                           DataRate dataRate,</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>                           <span class="keywordtype">bool</span> flag)</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> {</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a> = socket;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">m_peer</a> = sinkAddress;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">m_packetSize</a> = packetSize;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">m_nPackets</a> = nPackets;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">m_dataRate</a> = dataRate;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">m_flag</a> = flag;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span> }</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ada9c016c08e91a65da084c790acd4618">   96</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ada9c016c08e91a65da084c790acd4618">DGRUdpApplication::StartApplication</a> (<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>{</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    std::cout &lt;&lt; <span class="stringliteral">&quot;?????????????&quot;</span>;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">m_running</a> = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abca558ff6138a432a1ed7413b2fe2fd7">m_packetSent</a> = 0;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a>-&gt;Bind ();</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a>-&gt;Connect (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">m_peer</a>);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">SendPacket</a> ();</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>}</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab68d0f087fac0f3d02e3c8717b8cc21">  107</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab68d0f087fac0f3d02e3c8717b8cc21">DGRUdpApplication::StopApplication</a> (<span class="keywordtype">void</span>)</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>{</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">m_running</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>    <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">m_sendEvent</a>.IsRunning ())</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>        Simulator::Cancel (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">m_sendEvent</a>);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>    }</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a>)</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    {</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>        <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a>-&gt;Close ();</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    }</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>}</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">  121</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">DGRUdpApplication::SendPacket</a>()</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>{</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>    TimestampTag txTimeTag;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>    <a class="code hl_class" href="../../d5/d77/classns3_1_1_flag_tag.html">FlagTag</a> flagTag;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>    <a class="code hl_class" href="../../d0/db3/classns3_1_1_budget_tag.html">BudgetTag</a> budgetTag;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>    <a class="code hl_class" href="../../da/df9/classns3_1_1_priority_tag.html">PriorityTag</a> priorityTag;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>    </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    Ptr&lt;Packet&gt; packet = Create &lt;Packet&gt; (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">m_packetSize</a>);</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    Time txTime = Simulator::Now ();</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">m_budget</a> != <a class="code hl_define" href="../../d0/dbf/dgr-tcp-application_8cc.html#a40760e9f2359c35da6f29e0a8fafb9ca">MAX_UINT_32</a>)</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    {</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        budgetTag.<a class="code hl_function" href="../../d0/db3/classns3_1_1_budget_tag.html#a42dfab1331f4f1bb1953c1ec972ab0bb">SetBudget</a> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">m_budget</a>);</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>        priorityTag.<a class="code hl_function" href="../../da/df9/classns3_1_1_priority_tag.html#a2c4ada4770b0f4c6049edb3463da82a4">SetPriority</a> (1);</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        packet-&gt;AddPacketTag (budgetTag);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>        packet-&gt;AddPacketTag (priorityTag);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    }</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>    flagTag.<a class="code hl_function" href="../../d5/d77/classns3_1_1_flag_tag.html#a92c961c9c9e46744bf73cf82399e68df">SetFlag</a> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">m_flag</a>);</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    txTimeTag.SetTimestamp (txTime);</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>    packet-&gt;AddPacketTag (txTimeTag);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>    packet-&gt;AddPacketTag (flagTag);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a>-&gt;Send (packet);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>    <span class="keywordflow">if</span>(++ <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abca558ff6138a432a1ed7413b2fe2fd7">m_packetSent</a> &lt; <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">m_nPackets</a>)</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    {</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a217460003efed056634b84d512c0f47b">ScheduleTx</a> ();</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    }</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>}</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a217460003efed056634b84d512c0f47b">  149</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a217460003efed056634b84d512c0f47b">DGRUdpApplication::ScheduleTx</a> ()</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>{</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>    <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">m_running</a>)</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>    {</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>        <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a1df7eb2d3df2b8170a9fc452e0b2a49b">m_vbr</a>)</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>        {</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>            Ptr&lt;UniformRandomVariable&gt; rand = CreateObject&lt;UniformRandomVariable&gt; ();</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>            <span class="keywordtype">double</span> rate = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span> (rand-&gt;GetInteger (1, 100)) / 100;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>            Time tNext (Seconds (rate * <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">m_packetSize</a> * 8 / <span class="keyword">static_cast &lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">m_dataRate</a>.GetBitRate())));</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>            <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">m_sendEvent</a> = Simulator::Schedule (tNext, &amp;<a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">DGRUdpApplication::SendPacket</a>, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>        }</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>        <span class="keywordflow">else</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>        {</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>            Time tNext (Seconds (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">m_packetSize</a> * 8 / <span class="keyword">static_cast &lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span> (<a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">m_dataRate</a>.GetBitRate())));</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>            <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">m_sendEvent</a> = Simulator::Schedule (tNext, &amp;<a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">DGRUdpApplication::SendPacket</a>, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>        }</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>    }</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>}</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae7820a661567dee9c180baebda7a4429">  169</a></span><a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae7820a661567dee9c180baebda7a4429">DGRUdpApplication::ChangeRate</a> (DataRate newDataRate)</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>{</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>    <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">m_dataRate</a> = newDataRate;</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>}</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>} <span class="comment">// namespace ns3</span></div>
<div class="ttc" id="aclass_application_html"><div class="ttname"><a href="../../de/d6b/class_application.html">Application</a></div></div>
<div class="ttc" id="aclassns3_1_1_budget_tag_html"><div class="ttname"><a href="../../d0/db3/classns3_1_1_budget_tag.html">ns3::BudgetTag</a></div><div class="ttdoc">This class implements a tag that carries the budget time of a packet to the IP layer.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/ded/dgr-tags_8h_source.html#l00017">dgr-tags.h:18</a></div></div>
<div class="ttc" id="aclassns3_1_1_budget_tag_html_a42dfab1331f4f1bb1953c1ec972ab0bb"><div class="ttname"><a href="../../d0/db3/classns3_1_1_budget_tag.html#a42dfab1331f4f1bb1953c1ec972ab0bb">ns3::BudgetTag::SetBudget</a></div><div class="ttdeci">void SetBudget(uint32_t m_budget)</div><div class="ttdoc">Set the tag's budget.</div><div class="ttdef"><b>Definition</b> <a href="../../d1/d14/dgr-tags_8cc_source.html#l00028">dgr-tags.cc:28</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html">ns3::DGRUdpApplication</a></div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00016">dgr-udp-application.h:17</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a054ebc8dca3d709e0ef224465ec2d9bc"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">ns3::DGRUdpApplication::m_peer</a></div><div class="ttdeci">Address m_peer</div><div class="ttdoc">The destination address.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00080">dgr-udp-application.h:80</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a0c89a7a5f07d90b347e46045b03e7c7a"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">ns3::DGRUdpApplication::m_dataRate</a></div><div class="ttdeci">DataRate m_dataRate</div><div class="ttdoc">The data rate to use.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00083">dgr-udp-application.h:83</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a1df7eb2d3df2b8170a9fc452e0b2a49b"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a1df7eb2d3df2b8170a9fc452e0b2a49b">ns3::DGRUdpApplication::m_vbr</a></div><div class="ttdeci">bool m_vbr</div><div class="ttdoc">true meanse VBR</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00089">dgr-udp-application.h:89</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a217460003efed056634b84d512c0f47b"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a217460003efed056634b84d512c0f47b">ns3::DGRUdpApplication::ScheduleTx</a></div><div class="ttdeci">void ScheduleTx()</div><div class="ttdoc">Schedule a new transmission.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00149">dgr-udp-application.cc:149</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a2e5af196e076be85b8442c5375bc3e7e"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">ns3::DGRUdpApplication::Setup</a></div><div class="ttdeci">void Setup(Ptr&lt; Socket &gt; socket, Address sinkAddress, uint32_t packetSize, uint32_t nPackets, DataRate dataRate, uint32_t budget, bool flag=false)</div><div class="ttdoc">Setup the socket.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00061">dgr-udp-application.cc:61</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a3cb6df6b08f1d2e547e56bee6581a5fc"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">ns3::DGRUdpApplication::m_flag</a></div><div class="ttdeci">bool m_flag</div><div class="ttdoc">The packet flag.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00088">dgr-udp-application.h:88</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a592e26fa24bf64e140f33f6853b7c2f9"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">ns3::DGRUdpApplication::m_running</a></div><div class="ttdeci">bool m_running</div><div class="ttdoc">True if the application is running.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00085">dgr-udp-application.h:85</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a789f5dd5d50db1e9d60f7f7618098f0d"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a789f5dd5d50db1e9d60f7f7618098f0d">ns3::DGRUdpApplication::DGRUdpApplication</a></div><div class="ttdeci">DGRUdpApplication()</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00024">dgr-udp-application.cc:24</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a844392732fe5f6e197992c862c4151db"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">ns3::DGRUdpApplication::SendPacket</a></div><div class="ttdeci">void SendPacket()</div><div class="ttdoc">Send a packet</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00121">dgr-udp-application.cc:121</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a96e0bf33b34279f8ac18d854702da5e5"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">ns3::DGRUdpApplication::m_nPackets</a></div><div class="ttdeci">uint32_t m_nPackets</div><div class="ttdoc">The number of packet to send.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00082">dgr-udp-application.h:82</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_aab22ae4139e567c50bacd3e231407147"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">ns3::DGRUdpApplication::m_socket</a></div><div class="ttdeci">Ptr&lt; Socket &gt; m_socket</div><div class="ttdoc">The transmission socket.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00079">dgr-udp-application.h:79</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_aab68d0f087fac0f3d02e3c8717b8cc21"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab68d0f087fac0f3d02e3c8717b8cc21">ns3::DGRUdpApplication::StopApplication</a></div><div class="ttdeci">void StopApplication(void) override</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00107">dgr-udp-application.cc:107</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_abca558ff6138a432a1ed7413b2fe2fd7"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abca558ff6138a432a1ed7413b2fe2fd7">ns3::DGRUdpApplication::m_packetSent</a></div><div class="ttdeci">uint32_t m_packetSent</div><div class="ttdoc">The number of packets sent.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00086">dgr-udp-application.h:86</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_abd5375f6282c6727baa7fb565cff8a3e"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">ns3::DGRUdpApplication::m_budget</a></div><div class="ttdeci">uint32_t m_budget</div><div class="ttdoc">The budget time in millisecond.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00087">dgr-udp-application.h:87</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ad7423806aaf0be2db0e87be4d30dae7f"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ad7423806aaf0be2db0e87be4d30dae7f">ns3::DGRUdpApplication::~DGRUdpApplication</a></div><div class="ttdeci">~DGRUdpApplication() override</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00039">dgr-udp-application.cc:39</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ada9c016c08e91a65da084c790acd4618"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ada9c016c08e91a65da084c790acd4618">ns3::DGRUdpApplication::StartApplication</a></div><div class="ttdeci">void StartApplication(void) override</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00096">dgr-udp-application.cc:96</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_adf5ede44035ee65db58c501d67f01d07"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#adf5ede44035ee65db58c501d67f01d07">ns3::DGRUdpApplication::GetTypeId</a></div><div class="ttdeci">static TypeId GetTypeId(void)</div><div class="ttdoc">Register this type.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00045">dgr-udp-application.cc:45</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ae51a9c8759e37e18a79e058ef519bcce"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">ns3::DGRUdpApplication::m_packetSize</a></div><div class="ttdeci">uint32_t m_packetSize</div><div class="ttdoc">The packet size.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00081">dgr-udp-application.h:81</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ae7820a661567dee9c180baebda7a4429"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae7820a661567dee9c180baebda7a4429">ns3::DGRUdpApplication::ChangeRate</a></div><div class="ttdeci">void ChangeRate(DataRate newDataRate)</div><div class="ttdoc">Update the sending rate.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00169">dgr-udp-application.cc:169</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_aec2ba587631beecd7da9f53b39909706"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">ns3::DGRUdpApplication::m_sendEvent</a></div><div class="ttdeci">EventId m_sendEvent</div><div class="ttdoc">Send event.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00084">dgr-udp-application.h:84</a></div></div>
<div class="ttc" id="aclassns3_1_1_flag_tag_html"><div class="ttname"><a href="../../d5/d77/classns3_1_1_flag_tag.html">ns3::FlagTag</a></div><div class="ttdoc">This class implements a tag that carries a flag to the application layer.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/ded/dgr-tags_8h_source.html#l00108">dgr-tags.h:109</a></div></div>
<div class="ttc" id="aclassns3_1_1_flag_tag_html_a92c961c9c9e46744bf73cf82399e68df"><div class="ttname"><a href="../../d5/d77/classns3_1_1_flag_tag.html#a92c961c9c9e46744bf73cf82399e68df">ns3::FlagTag::SetFlag</a></div><div class="ttdeci">void SetFlag(bool flag)</div><div class="ttdoc">Set the tag's flag.</div><div class="ttdef"><b>Definition</b> <a href="../../d1/d14/dgr-tags_8cc_source.html#l00170">dgr-tags.cc:170</a></div></div>
<div class="ttc" id="aclassns3_1_1_priority_tag_html"><div class="ttname"><a href="../../da/df9/classns3_1_1_priority_tag.html">ns3::PriorityTag</a></div><div class="ttdef"><b>Definition</b> <a href="../../dc/ded/dgr-tags_8h_source.html#l00150">dgr-tags.h:151</a></div></div>
<div class="ttc" id="aclassns3_1_1_priority_tag_html_a2c4ada4770b0f4c6049edb3463da82a4"><div class="ttname"><a href="../../da/df9/classns3_1_1_priority_tag.html#a2c4ada4770b0f4c6049edb3463da82a4">ns3::PriorityTag::SetPriority</a></div><div class="ttdeci">void SetPriority(uint32_t priority)</div><div class="ttdoc">Set the tag's priority.</div><div class="ttdef"><b>Definition</b> <a href="../../d1/d14/dgr-tags_8cc_source.html#l00241">dgr-tags.cc:241</a></div></div>
<div class="ttc" id="adgr-tags_8h_html"><div class="ttname"><a href="../../dc/ded/dgr-tags_8h.html">dgr-tags.h</a></div></div>
<div class="ttc" id="adgr-tcp-application_8cc_html_a40760e9f2359c35da6f29e0a8fafb9ca"><div class="ttname"><a href="../../d0/dbf/dgr-tcp-application_8cc.html#a40760e9f2359c35da6f29e0a8fafb9ca">MAX_UINT_32</a></div><div class="ttdeci">#define MAX_UINT_32</div><div class="ttdef"><b>Definition</b> <a href="../../d0/dbf/dgr-tcp-application_8cc_source.html#l00019">dgr-tcp-application.cc:19</a></div></div>
<div class="ttc" id="adgr-udp-application_8h_html"><div class="ttname"><a href="../../dc/d8d/dgr-udp-application_8h.html">dgr-udp-application.h</a></div></div>
<div class="ttc" id="anamespacens3_html"><div class="ttname"><a href="../../d7/d2e/namespacens3.html">ns3</a></div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00027">dgr-application-helper.cc:27</a></div></div>
<div class="ttc" id="anamespacens3_html_adde9ed23eff577cdfec10d85035e32eb"><div class="ttname"><a href="../../d7/d2e/namespacens3.html#adde9ed23eff577cdfec10d85035e32eb">ns3::NS_LOG_COMPONENT_DEFINE</a></div><div class="ttdeci">NS_LOG_COMPONENT_DEFINE(&quot;DGRRoutingHelper&quot;)</div></div>
<div class="ttc" id="anamespacens3_html_aef8bf32b4f2f98d854532bfb36d47a7c"><div class="ttname"><a href="../../d7/d2e/namespacens3.html#aef8bf32b4f2f98d854532bfb36d47a7c">ns3::NS_OBJECT_ENSURE_REGISTERED</a></div><div class="ttdeci">NS_OBJECT_ENSURE_REGISTERED(DgrNse)</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_3f14f6767c31cb4a1d22c13c18cc6fc3.html">model</a></li><li class="navelem"><a class="el" href="../../d0/ded/dgr-udp-application_8cc.html">dgr-udp-application.cc</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
  </ul>
</div>
</body>
</html>
